<?
$TYPE_OF_PAGE = 'full';
$TYPE_OF_MENU = '';
include('layout_top.php');
?>

<h1>Error!</h1>
<p>We have encountered an error. Sorry for the inconvenience. Details of the error:</p>
<div class="error">
    <?php
    if(!empty($_GET['errorMsg'])) {
	switch($_GET['errorMsg']) {
	    case "no_type": echo "Insufficient criteria for browsing (no \"type\" defined.)"; break;
	    case "no_brand": echo "Insufficient criteria for browsing (no \"brand\" defined.)"; break;
	    case "no_menu": echo "No menu to load."; break;
	    case "no_search": echo "Please enter a search query."; break;
	    default: echo "General error."; break;
	}
    }
    else {
	echo "Undefined error.";
    }

    ?>
</div>
<? include('layout_bottom.php'); ?>